/**
 *  fileName:test_interval
 *  time:2021/2/7
 *  todo:$END$
 */

let arr = []
let obj = {
  "signIn_get_prize_chance":{
    "prop:":"signIn_get_prize_chance",
    "label:":"签到获得抽奖机会",
    "desc:":"用户通过签到可获得抽奖机会",
    "configs":{
      "effective_way":{
        "label":"签到方式：",
        "prop":"effective_way",
        "item_type":"select",
        "value":"continuous",
        "data":[
          {
            "value":"continuous",
            "label":"连续签到"
          },
          {
            "value":"cumulative",
            "label":"累计签到"
          }
        ]
      },
      "effective_days":{
        "label":"签到天数：",
        "prop":"effective_days",
        "item_type":"number",
        "value":"1",
        "unit":"天"
      },
      "give_chance_times":{
        "label":"获得抽奖：",
        "prop":"give_chance_times",
        "item_type":"number",
        "value":"1",
        "unit":"次"
      }
    }
  },
  "watch_get_prize_chance":{
    "prop":"watch_get_prize_chance",
    "label":"观影获得抽奖机会",
    "desc":"用户通过观看指定内容可获得抽奖机会",
    "configs":{
      "watch_ladders":[
        {
          "watch_ladder":{
            "ladder":{
              "label":"每日累计观看时长：",
              "prop":"watch_ladder",
              "item_type":"number",
              "value":"1",
              "unit":"分"
            },
            "chance_times":{
              "label":"获得抽奖：",
              "prop":"chance_times",
              "item_type":"number",
              "value":"1",
              "unit":"分"
            }
          }
        }
      ],
      "is_assign_content":{
        "label":"指定观看内容：",
        "prop":"is_assign_content",
        "item_type":"checbox",
        "value":"仅限活动内提供内容"
      }
    }
  },
  "vip_get_reSignIn_chance":{
    "prop:":"vip_get_reSignIn_chance",
    "label:":"会员获得补签机会",
    "desc:":"会员用户可获得机会",
    "configs":{
      "vip_reSignIn_chances":{
        "label":"会员获得补签：",
        "prop":"vip_reSignIn_chances",
        "item_type":"number",
        "value":"1",
        "unit":"次"
      }
    }
  },
  "pay_get_reSignIn_chance":{
    "prop":"pay_get_reSignIn_chance",
    "label":"付费获得补签机会",
    "desc":"用户通过购买会员包可获得补签机会",
    "configs":{
      "vip_packets":[
        {
          "sssign_packet":{
            "packet":{
              "label":"购买会员包：",
              "prop":"packet",
              "item_type":"select",
              "value":""
            },
            "reSignIn_times":{
              "label":"获得补签：",
              "prop":"reSignIn_times",
              "item_type":"number",
              "value":"1",
              "unit":"次"
            }
          }
        }
      ],
      "is_limit_pay_get_reSignIn_chance":{
        "pay_get_chance_limit":{
          "label":"付费抽奖机会上限：",
          "prop":"pay_get_chance_limit",
          "item_type":"radio",
          "value":"no",
          "data":[
            {
              "value":"no",
              "label":"不限制"
            },
            {
              "value":"yes",
              "label":"限制"
            }
          ]
        },
        "limit_times":{
          "prop":"limit_times",
          "item_type":"number",
          "value":"1",
          "unit":"次"
        }
      }
    }
  }
}
for (const objElement in obj) {
  arr.push(obj[objElement])
}
console.log('arr:',JSON.stringify(arr))
